package org.study.bookmanager.service;

import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.context.annotation.Bean;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.stereotype.Service;
import org.study.bookmanager.io.request.User.LoginReq;
import org.study.bookmanager.io.request.User.RegisterReq;
import org.study.bookmanager.io.request.User.UpdateUserInfoReq;
import org.study.bookmanager.service.impl.UserServiceImpl;

import java.io.IOException;

public interface UserService {

    void login(LoginReq req, HttpServletRequest request, HttpServletResponse response) throws IOException;

    Object register(RegisterReq req);

    Object getUserInfo(String userName);

    Object updateUserInfo(UserDetails userDetails, UpdateUserInfoReq req);

    Object getNotice(UserDetails userDetails);
}
